package com.wuxi.zhang.service;

import com.wuxi.zhang.bean.UserBean;
import com.wuxi.zhang.mapper.TestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by zhang on 2018/8/3.
 */
@Service
public class TestService {

    @Autowired
    TestMapper mapper;

    public List<UserBean> queryUser() {
        return mapper.queryUser();
    }

    public static void main(String[] args) {
        Map<String, String> map = new HashMap<>();

        map.put("name", "zhang");
        map.put("sex", "boy");
        String name = map.get("name");
        System.out.println(name);

    }
}
